export namespace WrapperResponse {
    export const success = <T>(data: T) => {
        return {
            data,
            status: 200,
            message: ''
        };
    };

    export const error = (err: string) => {
        return {
            status: 500,
            data: '',
            message: err
        };
    };

    export const noAuth = (err: string) => {
        return {
            status: 401,
            data: '',
            message: err
        };
    };
}
